package com.example.demo.utils

import com.example.demo.entity.BaseEntity

class ResponseEntityUtils {

    companion object {
        @JvmStatic
        fun getsuccess(data: Any?): BaseEntity {
            return BaseEntity(1, "成功", data)
        }

        @JvmStatic
        fun getfail(msg: String, data: Any?): BaseEntity {
            return BaseEntity(0, msg, null)
        }

        @JvmStatic
        fun getfail(msg: String): BaseEntity {
            return BaseEntity(0, msg, null)
        }
    }
}